compute_slice(idx) should be able to accept an integer.
Merge pull request #162 from fegin/master

compute_slice(idx) should be able to accept an integer.