Broke the stepwise linear regression iterations into their own functions.

Their place in functions is completely untested at this point, since I'll likely be switching to lasso. I wanted to save my work though.