adds binary tree and tests