Implemented the greedy algorithm, basically done with project.