Just learned about this in science. What happens is the sodium dissolves into the water. By heating it more can dissolve in. After you disolve as much as it can handel, you freeze it so its limit lowers. Add the slightest amount of minerals to it, some of the grease or salt from sweat on your hands and everything comes out of the solution forming a solid structure. One of the more cooler parts of science.