added updateMatrixSet function to reflect addition/deletion of response variables.