removed sparse_matrix.max() function in order to support earlier versions of scipy