finishing bsort.cc