pattern.vector: faster Model.infogain()

For 100,000 documents with 100,000 features, took 1 hour, now takes 20 seconds!