added solve to gauss solver