Shifted to row-major indexing. Added sSupport for slicing arrays