Finished problem 9
Finished #22 with gmp