separate the code for getting the dest_leaves from the code for calculating the segments behind
separate the code for getting the dest_leaves from the code for calculating the segments behind

zumero/Elmo,zumero/Elmo