heap leaching calculation of drainage system