External mergesort for Unix environment