tuple structure added.
ta algorithm added.