Add a reset method, useful for reusing a comparator object, and dump_variables method useful in debugging