Merge pull request #13 from iporsut/master

Extract Method compareSwap
Add test 8th