Now using typed arrays for memory