Global path planning for autonomous ship