Exchanged arraylists with vectors.