First memory array on flexible substrate