Cleanup eq_functor

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
Fix bug in max_sharing

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>