fixed mean function to correctly test for floats
Added median.
Merge pull request #1 from bkstar/master

Added a median function.