add brk and mmap for memory malloc