code: int valueToFront(final byte value) {
          int index = 0;
          byte temp = mtf[0];
          if (value != temp) {
              mtf[0] = value;
              while (value != temp) {
                  index++;
                  final byte temp2 = temp;
                  temp = mtf[index];
                  mtf[index] = temp2;
              }
          }
          return index;
      }
docs: Moves a value to the head of the MTF list (forward Move To Front transform).
  @param value The value to move
  @return The position the value moved from