Improvements to Euler087 to run under 1s

Reduced search space and various optimisations