Implementation of the Travelling Thief problem