Cognitively-Inspired Model for Incremental Learning Using a Few Examples