Fixed pattern finder inaccuracies by adding rudamentary center sorter.

Not exactly equal to the original in the zxing code, but close enough.

This improves accuracy of the pattern finder tremendously - allowing scanning of some more complicated QR codes that wouldn't scan without this addition.