added cachesim code

This adds the original cachesim code. (Note that the hextobinary conversion function still needs to be merged in from my other computer). The GetFlags and PrintHeader function should be completed and functional.