Changed Array to use std::unique_ptr.