In calc_future_costs: use all conditional probabilities in calculating a future cost. In get_future_cost: add the minimal linear distortion cost
check if there are any unvisited positions
in calc_future_costs make adhoc values floats