mining process control using cyanide