added code for adjacency matrix

added the following three:
var adjMatrix;
function getAdjacencyMatrix()
function constructAdjacencyMatrix()