indexcodec: Add extensive comments
indexcodec: Add extensive comments

Add comments to encoder/decoder that highlight the gotchas in the code,
hint at the behavior and help visually parse the code.

zeux/meshoptimizer,zeux/meshoptimizer,zeux/meshoptimizer