Finished project euler problem 16