Implement AtomicSet and AtomicMap based on Persistent variants