beginning with trinary search tree