Computer simulation of recrystallization in non-uniformly deformed metals