Cyanide waste treatment