Groebner bases in a Boolean ring