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