Causes of glaciers and their types