new cooccurrence computation algorithm