ported nine-way-classifier to pc_centroid.. in code.tests folder