linear regression math getting slope and stuff