work in progress on general solution to coins problem.