Memory allocator inspired by jemalloc.