Here's a C version of Problem 14. It's really fast.