Adds xor function

Still thinking about how to do this with `foldr`, but here's a wholemeal solution using `filter`.