Adding mergesort implementation