Fixed https://github.com/asterics/AsTeRICS/issues/21
Substituted all occurrences of HashMap with LinkedHashMap and of HashSet with LinkedHashSet --> preserves insertion order