added greedy_greedy algorhitm of Andrew Sutherland