array to vector