Reads in file, assigns r and s, and calls sort