flow diagram of gold mining