private static int med3(int a, int b, int c, IntComparator comp) {
	int ab = comp.compare(a,b);
	int ac = comp.compare(a,c);
	int bc = comp.compare(b,c);
	return (ab<0 ?
		(bc<0 ? b : ac<0 ? c : a) :
		(bc>0 ? b : ac>0 ? c : a));
}
private static int med3 ( int a , int b , int c , IntComparator comp ) { int ab = comp . compare ( a , b ) ; int ac = comp . compare ( a , c ) ; int bc = comp . compare ( b , c ) ; return ( ab < 0 ? ( bc < 0 ? b : ac < 0 ? c : a ) : ( bc > 0 ? b : ac > 0 ? c : a ) ) ; }
Returns the index of the median of the three indexed chars.