Added first implementation of greedy split.