added greedy and educated algorithms