Cycle detection seems to work well -- verified against manually reading the
data file within Excel.  Did not manually calculate slopes, however.  Any
slope error will be the result off an off-by-one error, if anything.  Further
testing will reveal these problems in the future.