optimized indexSelect
removed the slow version of indexSelect from tensor.c
dummy