An oscillatory neural network model of sparse distributed memory and novelty detection