Added sorting
Basic logic for GreedyTreeGrowing