Some more implementation for the sorted merge