Added graph.java
Added Distance class and Graph build