Have some idea on sort, need debugging. Code a few about merge.