The Magma Monoid And Related Algebraic Structures