Linear Regression Code From Scratch