maximizing-xor solution