library to calculate half life/exponential decay.