what are two different ways limestone is formed