timed the two sort methods