yes your right sorry . how can i code the same functionality for big vector ( this vector only have size = 3 , what if i have a vector size that above 1000 )