Implementation of a generalized midpoint algorithm for integration of elastoplastic constitutive relations for von mises' hardening material