private static byte[] translate(byte[] indices, byte[] dictionary) {
    byte[] translation = new byte[indices.length];
    for (int i = 0; i < indices.length; i++) {
      translation[i] = dictionary[indices[i]];
    }
    return translation;
  }
private static byte[] translate(byte[] indices, byte[] dictionary)