code: boolean removeAlgorithm(Algorithm algorithm) {
  		if (algorithm != null) {
  			algorithm.close();
  		}
  		if (idsToAlgorithms.remove(algorithm.getId()) != null) {
  			algorithms = null;
  			return true;
  		} else {
  			return false;
  		}
  	}
docs: Closes and removes an algorithm.
  
  @param algorithm
  an <code>Algorithm</code> object.
  @return <code>true</code> if successful, <code>false</code> if not.