initial scala version of collabfiltering