better performance for union yielding max score at assignment3
mergin