Create trinary search tree class