solved maximizing xor