747 Derived Params and new library routine

straighten_altitudes added - like straighten heading - to deal with fine
and coarse altitude signals. Some work still to do to tidy the edge
cases up (see glen=999) but works for normal data.