Implementation of autonomous sailing algorithm and test engine