Removed memory allocation from Ari encoding.

This change increases Ari encoding speed by about 50% (from 870us/iter to 513us/iter). Also adds the bench mode for the Makefile.