Modify cache.h for inclusion in C++, add Makefile and csim.cc, update gitignore