Create alg binary tree