added method, test and example to check for reduced row echelon form