HashMap-->LinkedHashMap

To keep the sorted elements in Map, modify HashMap to LinkedHashMap.