Use of tuples instead of lists in shared memory