rmst_generic function

Generic function to find restricted mean survival time for some distribution