Imp median tests
Imp sparse mean and medians
Imp move bottleneck sparse mean code into a separate function for profiling
Imp sparse mean and sparse median speed
Imp refactoring + comments
Del old code
Imp comments + functions and parameters naming