Add AllocFunc and Allocator
Add objAlloc method to mange memory
Merge branch 'feature/alloc' into develop