impelemented a growing shared memory