added all functions from linear fitting with a constant term.
tests for linear fitting with constant term