Optimized the invertedList loop in the tuple calculator

Changed the for loop to a more efficient version, and fixed the if check
(*it > wordIndex), that should have been documentIndex
Added timer to the invertedList creator