implemented zip using unfold.