implement alloc, realloc

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>
add calloc, stats
TODO: need tests for stats

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>