Updated for multiple dives

Updated function to calculate multiple dives.

Function now takes residual pressure group (uresidual) as a parameter.
uresidual = 0 is used for the first dive after that a string with the
dive group letter is used to indicated dive group.