The dA and Sda algorithm added.