Use withFile in 99.
Removed type annotations for read.
Converted data file to UNIX line ends.
Use break instead of splitOn.
Refactored finding maximum index into a separate function.
Indentation fix.