Dynamic recursive algorithm to calculate the least number of 'coins' of any set of denominations to sum to a given value.