Changed Node parent to weak_ptr, closes #1 reported by Vinjn Zhang