Removed int i from median function since it is unused, as well as int wc from parent process.