Monoid operations added

Added possibility of monoid calculation in RBT