added stubs for ternary tree