Implementation of memory with long array