Added Problem 34.
Memoized factorials for speed in Problem 34.