Wife is cheating. She and her boyfriend frame the husband for a crime. He goes to prison and she gets a divorce and all his money. He does something that gets him exonerated, gets out of prison and plots a fantastic revenge scenario. I can't remember what the revenge was, but it was complex and complete! I read the story six or seven years ago so it's not recent. Any good guesses?