Made the following changes
a] Replaced numpy slicing with concatanate
b] Added swap_sparse_column