made parent an attribute of bstNode class