Ship flow optimisation in confined waterways