added new private function arrMean3 and used it for calculating mshape in gdif, ProcGPA and procSym