added values to the adjacency matrix