New findCommonIndexes function to find 3 and more tuplet groups