need to change array to vector in recursive dft