Simulation of a Filesystem in C++