Implemented makeOrderedLeafList