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

mergesorted seems to be working fine, need to add tests and figure out if it
can be modified fot arraysetops to make better use of it.