Maximize g-value as secondary key in heap comparator function in A*
implementation.