N维分配

N dimensional allocation