Changes arrays to vectors