Stores the difference in height of current and previous rectangle
int height1 = Math . abs ( V . get ( i - 1 ) . second - V . get ( i ) . second ) ; int height2 = Math . abs ( V . get ( i - 1 ) . first - V . get ( i ) . second ) ;