Implementation of grid stabilization algorithm for large deformations based on Zinchenko et al. 1999