Refactoring of filterTuplets: extract findCommonIndexes function
Refactoring of filterTuplets: extract findTupletIntervals function
Remove check for empty tuplets (it's done earlier)
Refactoring of tuplet error setting for shorter code
Refactoring of filterTuplets: extract findBestTuplets function
Refactoring of tuplet filtering functions for clearer code