Maximize g-value as secondary key to the heap comparator.
Initialize compare map as a global setup step to avoid counting the time
to allocate the map as part of the benchmarking.
Removed x/y lists and use std::abs instead of abs.