Create cachesim.cpp

Sets up the cache, simulates the cache and computes the required statistics