Basic implementation of decision tree learning algorithm