Implemented reference class for support of COW in container classes