Adjacency matrix representation

Working Expansion testing with changed representation from  list to vector.