added sample implementation of spatial pooler training to evaluate performance -- too slow!