Isolate solving algorithm