C++ solution for projecteuler's problem 11.