Improve problem 23.
First attempt at problem 50.

Takes way to much time; I haven't been able to run it all the way
through yet.  I'm going to try to make it more efficient.
Solved problem 50.