Matrix RREF and REF fixed