Merges packets of two streams using map function