sort.cc: quick sort