It's difficult for anyone to remain friends with their exes. But these stars have found a way to work it out.