Wyoming inmate captured after 31 years