partition tree classifier - implement predict