Added binarysearch for ranges of values
Added unionfind algorithm