Simple implementation of Least Squares Reggression on window.