median function added
median is full implemented. The algorithm is limited to a sample with 20 runs
moficiation in median function, parameter to control the sample size
median procedure is testd