Working implementation using absolute cost
Working switch to NCC with FastBox accumulator at the beginning