Lexicographic minimal representative: tests passing.