Reworked ResultTuplecalculator so it now handles duplicate elements correctly