Quick Union Algorithm implementation along with the supported input file