Adding gtest for testing

Modified gtest to support C++11
Modified destructor for graph objects.