Matrix Example from Big C++