Normalization helper function
Least squares and ridge regression (from past weeks)