Adding problem 35.

Uses member function way too much for it to execute in reasonable time.