Horizontal and Vertical R&D Cooperation