Fix makefile
Fix union find