From http://stackoverflow.com/questions/12651079/assignment-help-union-between-sets