added cheapest insertion heuristic