merge sort algo with test passed :)