Started to enhance the code to generate random matrices and do checking.