Added inline constructors for base_tsp + empty constructor.
Made changes in tsp to reflect changes.
Added compute_idx function to convert from i, j to index
and changed objfun and constraints function to reflect changes.