Add CompareAndSwap

Signed-off-by: Onsi Fakhouri <onsi@pivotallabs.com>