functions of a gold ore processing plant