test=develop
remove Free() method in UnmanagedAllocator
add unittest of retry_allocator
Use OO style to rewrite memory allocation.