perf improvements in linear_regression

http://jsperf.com/linregtest
add comments explaining new variables
Merge pull request #49 from danallison/master

perf improvements in linear_regression