Streamlined the greedy_rls module, added a unit tester for it, and updated the corresponding example codes.