add flags and bit operations for brk and mmap