implemented height and getAllParents/GetAllParentIDs