code: public static void permutationInverse( int []original , int []inverse , int length ) {
          for (int i = 0; i < length; i++) {
              inverse[original[i]] = i;
          }
      }
docs: Computes the inverse permutation vector
  
  @param original Original permutation vector
  @param inverse It's inverse