Updated SWAlgorithm

Theres a bit of a bug, I can't seem to align the last few lines