flow diagram of a mining plant