Multilayer flash memory technology