Convenience function that takes a forward range X and a forward range Y,
creates an array of PowMap structs for integer powers 0 through N,
and calls linearRegress.
A PolyFitRes containing the array of PowMap structs created and
a RegressRes. The PolyFitRes is alias this'd to the RegressRes.