Create sorting code

program uses typical external merge sort