A ternary search tree implementation in Erlang.