Add option to specify allocator for high-level functions.
Merge pull request #74 from untom/linalg_mempool

Add option to specify allocator for high-level functions.