Added the xor allocation code, bugfix to cxor.