array and vector comparison