Integration Algorithm for Frictional Materials Including Plasticity, Damage and Rate Effects