Add knth with mergesort