added class for a column matrix
changed residual data structure within blockVars class