Implement rename operation; fix a memory leak on removing node
2 files changed