Scala implementation of crude ID3 decision tree algorithm