added libraries and linreg code
oh shit