Groebner basis for public key cryptograpy