Replace lots of list concatenations with Dlist.

In order to improve efficiency, Dlist is introduced, by using which all
list concatencations are reduced to O(1) complexity rather than O(N).