Testing equality of vectors in a 2 dimensional array

Thank you for your input and the coding you provided.
I will implement and test it in my program and report back.