add merge_sorted
import in doctest
add merge_dict