Block copolymer directed self-assembly for patterning memory and logic