Using Tuples in Swift to find matching criteria