Project Euler 11 solved