A generalised algorithm for anelastic processes in elastoplasticity and biomechanics. (March 2017)