Added a modified version of the IS algorithm. It calculates a different
beta for each link that depends on the distance to the terminal node