Added inverted index (still broken)