changes
Added functions to buuild the framework of the sparse matrix.
Uses two for loops: for the head row and head column nodes respectively.