Improved speed and file format.
-Added a new private member variable in graph_array to speed up the search
for the smallest distance in the graph. The variable starts out with each
vertex distance and then shrinks as each vertex is visited.
-Moved all code from header to cc file.