[FIX] Crash for one attribute data as x

  Keep track of split and column split in the tree data structure
Moved best_of_best to common
Added tree.classify function