update CheckPointer, implement writeTreeToDisk