Added test output file sortedRM.txt (fails the test).