finished the item-cosine and item-adcosine algorithms'