Theories of Formation of Ore Deposits