adding test code for merge sort