Exercise for WebDataExtraction - calculates a similarity score for html trees