Advanced C++ honework 1 - matrix iterator