Algorithms for Collision Probability Assessment and UAV Control for Maritime Safety Tasks