Wrote algorithms for mean and median- not adapted for generalized datasets though