add equality comparison and std::max binary functors