update mergesort sample