s2pwe function

Approximate survival distribution with piecewise exponential distribution