Fixing mean to behave correctly for floats.
The last change was redundant because it already worked for floats already.
Median funciton added to stats