Added score to SemanticEdge and implemented method updateScore.