add codes in chapter12,including merge sort and quicksort