changes to sparse matrix assignment overload