A Java implementation of the Monoid algebraic structure