Updated nanmedian to use apply_along_axis method written by empeeu
Updated unit tests to reflect nanmedian change