Refactor code and put extensions and helpers in separate files
Metoda Bisectoarei