Checked matrix creation for problem size of 300