fix problem in heuristic_solution; use fabs() instead of abs(); cosmetics