Refactored code for flatten two lists function
Refactored code for merge two objects function
Refactored code for sort dictionaries function