mymalloc implementation