256 byte Direct-mapped Cache in C++