add document merge sort