Return tuples instead of lists in _quads_to_triangles