Added TableType enum to DocumentIdTable
Refactored DocumentIdTable into an DocumentIdTable and UncompressedDocumentIdTable.
Inverted control of the DocumentIdTable and InvertedList, and add a factory method
for InvertedList.