Algorithms from Programming collective intelligence