HB001.7

Recoded the routing algorithm for MIRP