removed the slow version of indexSelect from tensor.c