Created an adjecencyMatrix object to represent a graph