Reverse array in decreasing order
static long [ ] reverse ( long a [ ] ) { int i , n = a . length ; long t ; for ( i = 0 ; i < n / 2 ; i ++ ) { t = a [ i ] ; a [ i ] = a [ n - i - 1 ] ; a [ n - i - 1 ] = t ; } return a ; }