euler 11 refactor