replace std vector<int> and vector<double> with int and double array