make sure csv file contains a matrix

i.e. fill up missing coefficients with zeros when needed