Optimised: Sieve now builds matrix also
Optimised: Doing long division when under 64 bits in checking for smooth X
Optimised: Precalculated some array sizes