Implemented unionWithKey directly