implementation of the poly to e2 compiler
added some tests
Merge pull request #1 from megaflo/master

Poly to e2 compiler