flowchart of showing how a sedimentary rock is formed