Add CoW support for critbit
Add in-place version for reference