A collision avoidance algorithm for ship guidance applications. (3rd January 2020)