fixed mean function to correctly test for floats
I added a median function, foo
Merge pull request #1 from krmarquardt/median

Median