Added algorithm to compare optimal data with heuristic data