complete makeOrderedLeafList