algorithm: algorithm implementations and tests

* bintree.py (Node, Tree, height, diametr)