c memory pool allocating objects of the same size