add memory alloctor and sample gc support.
Signed-off-by: wzt <wzt.wzt@gmail.com>