Added some comments and refactored some code
Optimized tabu search to delay the occurence of a stackoverflow error