added ternary search tree