Passing indata as pointer to a vector.
Some changes proposals to the algorithm.
Instead of using a constant number of segments, it will create segments dynamically.
We will use a segmentHeader struct to describe each segment.
The main function must read the headers' information to write to the output file.