Modified median input type

Fixes #5

2012b requires single or double as input to median.