Added realization of quick union algorithm. Minor fixes.

Added QuickUnion class with realization of corresponding algorithm.
Minor fix in toString() method within QuickFind.
Added check for scanner in main.