A knowledge based approach to collaboration in basic research