quick union tested and implemented