Issue #15 + #21 - refactoring for the atomic references to get rid of sun.misc.Unsafe and to fix cache-line padding