title: C# SIMD Sort/Median using System.Numerics.Vector
body: <p>I have a video processing code that needs to determine the value of each pixel by using the median of its 4 neighbor pixels. So, I have an array of 4 bytes and must find its median in a performance-effective way. First I must sort the array, then do the average of the 2 middle values. I have to do that for half the pixels of the image so it can be done in parallel.</p>
  
  <p>Can this be done using System.Numerics.Vector?</p>
  
  <p>Also this isn't clear in the docs: does System.Numerics.Vector create SIMD for x86 code or only x64?</p>