algorithm detox