Optimised problem 36 by generating palindromes instead of checking for them