Added bit wise not assignment and swap.