An algorithm for CAD modelling and optimisation of sailing boats under regatta bonds: application in the case of IMS class