Implement decorator for finding Groebner basis of equations system.