add xor operation and Makefile