code: public Factor getFactorByName(String name) {
      int index = getFactorIndexByName(name);
      if (index == -1) {
        return null;
      }
      return factors[index];
    }
docs: Gets the factor in this named {@code name}. Returns {@code null}
  if no such factor exists.
  
  @param name
  @return