DAC linearity improvement algorithm with unit cell sorting based on magic square | IEEE Conference Publication | IEEE Xplore