Binary tree and tests.