Array initialization and pagelength population in Memory