Added wrapAround parameter to SP 

C++ version of numenta/nupic#1229

Fixes #166
In there future there will be multiple conditionals. I would move the update to `version_` to the end, outside the conditionals.