Complete Problem 16 in project euler