prob 14 solved
prob 14: replaced array based memo with a map