h_tbl_median_surv function

Helper function for survival estimations