Replaced slow Python loop with fast vectorized numpy for sparse array creation
Replaced slow Python loop with fast vectorized numpy for sparse array creation

numenta-archive/htmresearch,numenta-archive/htmresearch,numenta-archive/htmresearch,numenta-archive/htmresearch,numenta-archive/htmresearch,numenta-archive/htmresearch