Algorithm improvement by changing median calculation.
Bugfixes (I'm stupid)
Updated test case information
Merge pull request #5 from commonsmachinery/m4-improv

M4 improv