Moved benchmarks to own file
Inlined a few key function

* Select inlining giving 4x speed in some cases
* Fixed memory leak