Numerical Solution of the Walgraef-Aifantis Model for Simulation of Dislocation Dynamics in Materials Subjected to Cyclic Loading