Coursera shares are trading higher after the company announced it signed an all-stock merger agreement with Udemy.