started code for stxxl external sorting