a simple collaboration filter in scala