My first stab at implementing a decision tree in Scala