fixing compaction, adding statistics
fixed memtable compaction