public static long max( long []array , int offset , int length ) {
		long max = -Long.MAX_VALUE;
		for (int i = 0; i < length; i++) {
			long tmp = array[offset+i];
			if( tmp > max ) {
				max = tmp;
			}
		}
		return max;
	}
public static long max ( long [ ] array , int offset , int length ) { long max = - Long . MAX_VALUE ; for ( int i = 0 ; i < length ; i ++ ) { long tmp = array [ offset + i ] ; if ( tmp > max ) { max = tmp ; } } return max ; }
Returns the value of the element with the maximum value