Extract Method compareSwap
Merge pull request #13 from iporsut/master

Extract Method compareSwap