A memory allocation simulator