make_change: added a better implementation