DP Linkedlists avl trees