A Simple implementation of Copy-On-Write in C++.