add tenary search tree