Added problem 22
Added p24, 26 and 27
Optimised p27 a little