Returns the square of distance between two input points
static int sqDist ( ArrayList < Integer > p1 , ArrayList < Integer > p2 ) { return ( p1 . get ( 0 ) - p2 . get ( 0 ) ) * ( p1 . get ( 0 ) - p2 . get ( 0 ) ) + ( p1 . get ( 1 ) - p2 . get ( 1 ) ) * ( p1 . get ( 1 ) - p2 . get ( 1 ) ) ; }