fixed #3 Added the median function