Create graph.java

This is a class for representing a graph, along with an adjacency matrix.