Chapter 2 - Tree: Creating persistence

The e52fb1e doesn't create persistence. Here we add this features and
test cases for it.