The implementation of glaciation-induced rotational behavior of the Earth in a numerical model