Cooperation and Competition in a Duopoly R&D Market