This is a C++ fast xor implemented by eryksun <http://stackoverflow.com/users/205580/eryksun