fork() added to main. child calls median and parent calls mean.