added getParent() algorithm for BST