Main for creating inverted index and edges

Creates inverted index and edges and writes them to files edges.txt and invertedindex.txt