three dimensional similarity accumulator