Solution for problem 014 without any optimisations, about 17 seconds