Gravar-mail: Analogue pattern recognition with stochastic switching binary CMOS-integrated memristive devices