Add union function to API.
don't assume ordering
Merge pull request #34 from yieldbot/union_fn

Add union function to API.