Change CompactHistory data storage
It is removing the vector of lines storage. Now it is using a similar idea used in history file.
All chars are stored in a linear way, only the line indexes are changed when reflowing.
No speed problem found when removing lines.