add new median function
rewrite quartile to not include the median in calculation