Adding functions to initialize and print adjacency matrix