Solved problem 78 (coin partitions), but code is extremely slow.