A model of attention and memory based on the principle of the dominant and the comparator function of the hippocampus