Update Distance.java

Added Static set of edges as global variable... you might want to double check it though!!! - Ujwal