Algebraic aspects of some Riordan arrays related to binary words avoiding a pattern