Wrote a second srt algorithm using loop iterations as quanta. Not sure if it's working properly though.