Fixed part 1 of exercise 3. Had an error with automatically increasing
the array-size, which resulted in wrong testing results.