Scala Implementation of Classification and Regression Tree (CART)