Trying to convert TST from imt TST from mutable to immutable modifying function put and remove.