overloaded solve function to include new matrix and "known right side"