code: public boolean addAlgorithm(Algorithm algorithm) {
  		if (algorithm == null || idsToAlgorithms.containsKey(algorithm.getId())) {
  			return false;
  		}
  
  		idsToAlgorithms.put(algorithm.getId(), algorithm);
  		algorithms = null;
  		return true;
  	}
docs: Adds a new algorithm.
  
  @param algorithm
  an <code>Algorithm</code> object.
  @return <code>true</code> if successful, <code>false</code> if not.