Revert "allocator: move split_at to allocator"

This reverts commit a0e53caa9de628f09157bdfca9effdacba3351eb.
graph: some gap APIs