The history of a certain rock began as a solidified melt, which was then was broken apart by wind, water, and ice. The broken pieces came to rest in a low basin near a coastline and then were buried. There these pieces became heated and squeezed such that the minerals in these pieces altered into other minerals. What type of rock is this?