sort/search: added mergesort implementation