faces is a (m, 3) array of triangle vertex indices. Find the set of unique line segments composing all triangles. Return them as a sorted (k, 2) array (each segment sorted ascending, then unique rows).
faces
(m, 3)
(k, 2)
solve(...)