merge sort impl and test.