Create graph.cpp

Basic graph class with BFS