Added complete greedy search algorithm.