Updated SDR for Bareiss' crappy incomplete version.