Parallelized the sentence vector construction function