Fixed instances of unused matrix commands in chap2.