row echelon form bug fix