Calculate neighbor indices without function neighborIndex2offset
merging kalles function