updated calculations for similarities and predicted ratings