Added inverted_index script