add example digits recognition

Hi Stéphan

As I promised, that's the PR for the pattern recognition example. :)

I ping @GaelVaroquaux as he might be interested too.