fun with stats

short implementations for median functions