Simulation of buddy memory management