Terascale integration via a redesign of the crossbar based on a vertical arrangement of poly-Si nanowires