Contextual grammars vs. context-free algebras