Travelling salesman problem brute force