Scapegoat Algorithm for Balanced Trees