Added #3, #4 and #5; Made fork(), the child process call median and parent process call mean