add Ternary search tries