Refactor saveCSRMatrix, use compressed by default