Transition path sampling and forward flux sampling. Applications to biological systems