added code for adjacency matrix

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