a] Replaced numpy slicing with concatanate
b] Added swap_sparse_column