basic get/set item & equality testing for matrix