Added mm_alloc 

issue #3