added addVertex function and realloc to graph.{c,h}