Bug fix of printschedule and schedulecost.

There is a bug in the function printschedule and schedulecost of optimization.py.
When getting out and return flight from the argument provided, the index should be d*2 and d*2+1, instead of d and d+1.