Model data structure and implement merging and sorting.