Addex TXN scheme to C++ Galois version.
Also fixed the Matlab version (it was inefficient).