added C solution with XOR experiments