coursera: algorithms part1: week1: union.