Adding size check to CheckSort.