Symmetry
InterviewTime limit1sMemory limit128 MB
Decide whether the given dots mirror exactly across some vertical line, printing YES or NO for each test case.
Problem
The figure on the left is left-right symmetric: you can fold the sheet of paper along a vertical line (drawn as a dashed line) so that the two halves match exactly. The figure on the right is not left-right symmetric, because no such vertical line exists.


Write a program that decides whether a figure drawn as a set of dots is left-right symmetric. All dots are distinct.
Input
The first line contains the number of test cases .
Each test case begins with a line containing an integer (), the number of dots in the figure. Each of the next lines contains two integers, the -coordinate and the -coordinate of a dot. Both coordinates are integers between and , inclusive.
Output
For each test case, print a single line: YES if the figure is left-right symmetric, or NO otherwise.