Implemented greedy algorithm for fewest coin calculation.