write a test case for matrix indexing
fix a bug, m(all) should return a column vector rather than row vector.