Add xor for node ids

Should I be using an Integer, rather than [Bit]?