objc: factored out linked list merge