1. Added implementation of list_sorted_merge API and its dependency
private function list_sorted_merge_private