Running median working for doubles