Function change and array change

Change array and size. Median definition was changed to calculate when
the array is an even number, and the array has no “middle” number.