Completed and tested the RowComparer.java