code: protected CLIQUEUnit rightNeighbor(CLIQUEUnit unit, int dim) {
      for(CLIQUEUnit u : denseUnits) {
        if(u.containsRightNeighbor(unit, dim)) {
          return u;
        }
      }
      return null;
    }
docs: Returns the right neighbor of the given unit in the specified dimension.
  
  @param unit the unit to determine the right neighbor for
  @param dim the dimension
  @return the right neighbor of the given unit in the specified dimension