Speed up building of decision tree (by avoiding checking the split of training set by the same rules more than once)