Add first part of linear regression, and fixed hash hack so it doesn't jump.