add backgound flush function, but not tested.
add tree structure in the memory cache, not finished
add segment_tree_fsync, but has lots of bug
merge