Finished part 2 of assignment 4. Made the union actually make the parent the smaller of the pixelIDs