I have two vectors, of different types, lets say int and double. I also have a third vector with indices and I want to extract the values of the two first vectors correspond