A finite element formulation for a direct approach to elastoplasticity in special Cosserat rods. (14th January 2021)