//implemented bellman ford algo but getting segmentation fault in making adjacency matrix