Distinction between weigthed and unweighted WindowDiff
Correction of bugs in the proposed version