How to indicate whether there are any two rows overlapping - C#