Trees with reroutes
Created by: Durman
Problem statement
It seems that I messed something up in this method:
In the update tree data structure I remove reroutes because there is no any sense to take them into account during updating trees. The code is not complex but delicate and it seems is better to add some tests for this step.