Improved polynomial regression testing
Added linear system solving through Matrix class