Design of a neural content addressable memory with high pattern retrievability