The Implicit Metropolis-Hastings Algorithm