we can now compute the medians using mulitprocessing