static void BitonicSort ( int[] a, int logLen ) { for( int i=0; i<logLen; i++ ) { for( int j=0; j<=i; j++ ) { Kernel(a, i, j); } } }