added a unionPlaylist function
added an intersectPlaylist function