Clear out bins after each iteration of references so that old values are not carried over to next iteration.  This fixes bug that caused erroneous depth in positions that should have been zero depth.