fixed makeOrderedLeafList, createCodeTree implemented