Implement sparsify_rows (still broken)