Implemented a greedy algorithm...

that is sadly incorrect. :-(