Gravar-mail: Dimensional Analysis Using Toric Ideals: Primitive Invariants