Added the actual solving to gauss