TraceRing OWP Bug Fix w/ DEBUG

Fixed numerous bugs with TraceRing algorithm. Debug code enabled.
Trace Ring OWP Bug Fix w/o DEBUG

Same as previous without debug code