Resolved issue #3, median function is working.