Modified set name in getIndexElimSet

The set that was passed into getLoopIndices was not the one that was passed from the calling function. Replaced that. Name changed from set to indexSet.