added getparent method to BinatyTreeHelper class