Program halts when adding objects to the matrix, probably a segmentation
fault.