Wow, I really don't even know what to say. I thought I had had problems but you just topped me.
You're in a tough position, no matter what you do someone will be hurt badly. In some ways the relationship with the ex is the lesbian experience that your wife needs also, but you are not a woman. Also the ex is also damaged emotionally and dealing with two is alot to handle. Good Luck