Some algorithms from Programming Collective Intelligence