Formation of limestone bedrock