k-way external sorting