Added a solution to problem 10. I now realize that my solution to problem 7 is very inefficient.