Trial, a computerprogram to calculate the behaviour of a ship in regular and irregular longitudinal waves