refactor tryToVectorizePair to a new method that supports vectorization of lists.