mem: allocate in reverse to reduce fragmentation