Optimized indexSelect for cuda version

The origin indexSelect cuda version is 3x slower than the c version, I have optimised it to be 3x faster than the c version.