Fast median filter for circle-valued data, for example signals or images describing phase or orientation