Simplified Haskell DP solution to change making problem