fork is called. child calls median and parent calls mean. This fixes #4