A low-heat, large-scale ternary content-addressable memory efficiently compares one or more input records with a set of entries. Straps from each side of the sleeping cap secure the cap on the person’s head. The first layer has a first shape and the second layer has a second shape.