get_survival_curve function

Return the survival curve at a node of a tree