Some basic recoomendation engine functions that are used for finidn similarity matrices. most similar items, processing missing values and such