Added DSW algorithm (BST balancing)