Implement a few algorithms to solve the travelling salesman problem in python