A Novel Design of a 3D Racetrack Memory Based on Functional Segments in Cylindrical Nanowire Arrays