Implement a function to merge two large, sorted datasets efficiently without loading both entirely into memory.