add compare_matrices.py

Used to run crosschecks for razor matrices