update algebraic.py by adressing some particular cases
Merge remote-tracking branch 'pylayers/master'
Merge pull request #109 from mlaaraie/master

Update algebraic.py