Working rangesort.cc