Functions that stops after reaching necessary amount of nodes
Runs binary search for degreeDiscout