ENH: Add mergesorted helper function for use in arraysetops.py

Added `mergesorted` to `_compiled_base.c`. The function takes two sorted
arrays and merges them in to a single sorted array. This function is not
exposed in the public API, and is only used to speed up some calculations
in `arraysetops.py`