Added SP example

Added an example to the examples directory explaining the working of the spatial pooler. 

Supports #654.