Version 1.0 of the solution to project euler problem 18