Inverted Index -C implementation