move main to test_mad.c and make into c code. Add creation and destruction of gunrock helper functions.
add library implementation into gunrock.cpp