implemented updateStatsInferEnd()
implemented onindices helper function
implemented temporal pooler compute() function