use sparse matrix instead
switch to no compressed sparse matrix