adding regression computation with pseudo-inverse