Version 2 - Defining the function + Generating the testcases
Fixing issues with calcuating the tour cost