added more functionality to BuildDenovoTwoWayJunction.py