stop flushing once sorted memtable size reaches zero
logging
simplify