Implementing more general split int array
(intended for second-order indexing)