Emulating zip function