Modified List.c and working on creating adjacency matrix