started on dynamic programming implementation of change making