Added ternary search tree