Utility function to print an array
public static void printArray ( int [ ] arr , int size ) { for ( int i = 0 ; i < size ; i ++ ) System . out . print ( Integer . toString ( arr [ i ] ) + " ▁ " ) ; System . out . println ( " " ) ; }