Update of co-occurence matrix.