code: public static byte[] shuffle(short[] input) throws IOException {
          byte[] output = new byte[input.length * 2];
          int numProcessed = impl.shuffle(input, 0, 2, input.length * 2, output, 0);
          assert(numProcessed == input.length * 2);
          return output;
      }
docs: Apply a bit-shuffling filter into the input short array.
  
  @param input
  @return bit-shuffled byte array
  @throws IOException