made bxor faster. thanks to delnan at stackoverflow