Finishing to construct main connectivity matrix: struc_pt.cpp