Fixed some errors in the matrix tutorial