A Cache Simulator in Java