Project Euler #101: Optimum polynomial