protected static int triangleSize(int x){
  return (x * (x - 1)) >>> 1;
}

protected static int triangleSize ( int x ) { return ( x * ( x - 1 ) ) > > > 1 ; }
compute the size of a complete x by x triangle ( minus diagonal )
