Path following algorithm application to automatic berthing control