partition tree classifier - working revision