I got a specific question that should be fairly simple but I have not been able to figure out good way to get it to work nicely for me. I have a discrete data set of about 40,000 points. I need to find the smallest 10 points from this list then return the index (i.e. if the 5th point is the smallest in the list I need it to return 5). The code needs to be efficient since I will need to do this for 1000 different data sets. Anyone got any bright ideas?