how to find an element in vector in c++