c++ matrix manipulation program. great.