want to store pairs of int values and compare then
<p>I have data in a form of pairs of values (e.g. (0,2), (2, 6), (6,0)).  I want to do some comparisions on each pair (e.g. if I have a value of 3 is it between a given pair of values).  What is the best way to store these values and be able to perform such comparision?</p>

<p>Thank you</p>
