printing statistics to make sure that the resizing of the array is correct