Added functions to convert compressed column and compressed row matrix format.