Rewrote part of medianAnalogRead for speed & accuracy