3 first operation done, also add a small helper for xor and rotation operation