Added a function checkColumns()

Function checks whether two tables have the same columns (names and
types), if they are not in order.

NOT TESTED. MAY HAVE LOGICAL ERRORS.