implemented greedy, pretty cool

waiting on Dale to OK the use of Arrays.sort haha