partition tree classifier - implement learn