Adding function to compute matrix (well...array actually) inverse mod 2. We will use this during the encoding preprocessing steps.