flowchart for production of copper by leaching