Exploiting the Computational Power of Ternary Content Addressable Memory