Add method to shrink array.