Added a new test to the merge function

Now multi-element dictionaries are also tested.
Added tests for the swap key-value function
Updated tests for sort function

Tests now work properly with files being created and deleted on the fly;
Added an extra test function.
Updated tests for swap function

Added main method for unittest;
Fixed code errors.
Implemented the swap function