Add preCompile function

This change require the user to precompile their defined types.
This will speed up bulk reads and writes significantly
Add performance test
Merge pull request #6 from nguyenchr/precompile

Add preCompile function