flatten all vector arrays to 1d