This program is writtern in python3, and you need to have Python3 installed on your computer.
python3 App.py <path/to/testing_file.txt>
The cutting point will be printed at the first line, with the intervals printed in the following lines. Also, all the data will be placed inside the corresponding intervals.