Creates ids for arbitrary tuples.
Rest
An unique id associated with the given tuple
An array where each element is an array which contains a tuple and the corresponding id
Creates ids for arbitrary tuples.