Fix erroneous deletion in algorithms
Set INFINITY_ in global instead of constants
Scale INFINITY_ by d in loader