Implements serializable of class Tuple