the stackoverflow might be fixed by ideals computation a quite efficient
way.