abelianize function

Abelianization of free group elements