[OPTIMIZATION] replaced inv(A)*B by A\B