checkNames function

Consistency test between the column names of two matrices