fix in size determination for new matrix
Merge pull request #130 from Bonder-MJ/master

fix in size determination for new matrix