Dynamic programming instead of permutations to find optimal tuplets