Implement new C++ data structure to power algorithms

Fixes #216.
Obsoletes https://github.com/numenta/nupic.core/pull/217.
Do you assume that inputs cells are sorted? If so, it should be mentioned.