Added cooccurrence matrix calculation.