Fix memory leak in Finalize_Matchings procedure

Free memory of all elements stored in the sorting tree.
Fix memory leak

Declaring an instance of an extendable strings already allocates memory which
must be freed prior to the first copy operation.
Free memory of Node_Sorter extendable string field
Free location paths prior to assignment