source code for programing collective intellegence