gold mining process control using cyanide