Function to arrayize a vec such that each entry corresponds to unique stim condition combination; not yet complete
Now sorts shockStackIndices into an trialMat-type array