Yang-Baxter Equation from SUSY Gauge Theories