Alternative recursive tuplet filtering algorithm