add example code for sparse matrix normalisation
add replaceRow functionalty for vector matrices
update demo code