Fixed bug in initializing size of union find.