The Science of Cave Formations