Functional programming principles

Just a reminder!
Dive identification

Identify dives and give each point a dive index. Inter-dive periods get
negative indices corresponding to the following dive. E.g. dive 3 is
preceded by inter-dive period -3.

identify-dive-indices threads the dive data through all the helper
functions.
get-dive-data provides bogus test data.