Fill multi-dimensional array by spiral