Interface with new C++ data structure to power algorithms

Depends on https://github.com/numenta/nupic.core/pull/220.
Fixes https://github.com/numenta/nupic/issues/1468.