Linear regression algorithm implemented in Fortran90