fit: fix polynomial regression for d >= 4
fit: fix polynomial regression for d >= 4

This stumbled over the classic capturing-the-loop-variable bug so all
terms from degree 3 and on used the highest degree.

aclements/go-moremath