Matlab Gaussian Elimination Function