Add array slicing functionality
add test cases for array slicing