Optimizations

* Replaced some callocs with mallocs
* Removed unnecessary memset
* Improved benchmark timing