Euler prob 9 and insertion sort algorithm