Memory efficient string representation for use with large amounts of strings