Rewrote BitMatrix to use vector<vector<BitVector> > instead of a big vector<bitset>.