Sparse Matrix Cpp Program Questions