implemented segment equality function
misc code cleanup
implemented getSegmentActiveSynapses
implemented getBestMatchingCell()
implemented chooseCellsToLearnFrom()
implemented getCellForNewSegment()
implemented learnPhase1()
implemented learnPhase2()