docs: static double computeScore( LinkedList<Corner> list , double cornerPenalty , boolean loops ) {
  		double sumSides = 0;
  		Element<Corner> e = list.getHead();
  		Element<Corner> end = loops ? null : list.getTail();
  		while( e != end ) {
  			sumSides += e.object.sideError;
  			e = e.next;
  		}
  
  		int numSides = loops ? list.size() : list.size() - 1;
  
  		return sumSides/numSides + cornerPenalty*numSides;
  	}