select by index (LongTensor)
out of bounds check