testing program, function, compares matrix
final version