add_index will take an index and a list of (document, score) pairs, and add them to the index database (a .txt file)