getPartition function

Get a list of indeces corresponding to parts of frequency partition