Added code to compute item-wise adoption distance