Replace numpy median with L1 median