Simulation of operating system dynamic partition allocation algorithm