Add common/graph.h
Fix BIT.cpp