Fix addCorrespondences with std::vector