Recursive implentation of the zip function as per the exapmple from the book