Create balancetree