Pairs to store the position of given two coordinates of the rectangle .
pair < Integer , Integer > p1 = new pair < > ( ) ; p1 . first = - 1 ; p1 . second = - 1 ; pair < Integer , Integer > p2 = new pair < > ( ) ; p2 . first = - 1 ; p2 . second = - 1 ;