Least squares linear regression
Code touch-ups
Moved editor stuff to the grid. Added least squares linear regression to lagrange app.
Bezier app to use grid edit functionality.
Code tidying.