Systolic array for fast multidimensional rank filtering