added ability to compute learning vector for percepts in short-term memory