A small C++ matrix class to solve systems of XOR equations