Thinking of getting married to that girl is out of question as u cannot do this to some innocent person like your wife. It was your mistake that after marriage u continued this relationship. Why should your wife pay the price for that? Accept that you are a married person now and you should not carry on with relationship, Start withdrawing yourself from the relationship to complete break up. No strings should remain attached otherwise emotional issues will entangle you.