private final int d_code(int distance) {
private int d_code(int distance) {
  private final int d_code(int distance) {    int code = 0;    while (distance >= 4)      {	code += 2;	distance >>= 1;      }    return code + distance;  }