update loop method for Balanced Binary Tree