Changed ugly &(vector[0]) to vector.data()