> added functions to print out A and b when necessary
> combined lin_fit(), quad_fit(), and cubic_fit() into a generalized least-squares fit function