Extended conformal algebra and the Yang-Baxter equation