Potentially working srt algorithm *see srt2* I haven't completely walked through it but it seems to work.