added graphs and a* in c++ and python