fix solution for problem 070 (still very slow)