no longer uses silly sorts to sort! (median of three)