A new front-tracking algorithm for marine robots