FRANKFURT (Reuters) - BASF has agreed to buy significant parts of Bayer's seed and non-selective herbicide businesses for 5.9 billion euros ($7 billion) in cash, the two companies said on Friday.