Parallel implementation of distributed associative memories for image classification